<?php $this->load->view('admin/admin_head.php');?>
<style>
body{background:#F7FBFC;overflow-x:hidden;overflow-y:auto;}
</style>

<table  class="left_menu" cellpadding=0 cellspacing=0 id="left_menu_personal">
	<tr><td><b class="mtop">个人中心</b></td></tr>
	<tr><td onclick="seton(this,'<?php echo site_url('admin/adminhome')?>');"><span><a href="javascript:void(0)">后台首页</a></span></td></tr>
	<tr><td onclick="seton(this,'<?php echo site_url('admin/modifypwd')?>');"><span><a href="javascript:void(0)">修改密码</a></span></td></tr>
	<tr><td onclick="seton(this,'<?php echo site_url('admin/userinfo')?>');"><span><a href="javascript:void(0)">个人资料</a></span></td></tr>
</table>
<table  class="left_menu" cellpadding=0 cellspacing=0 id="left_menu_content">
	<tr><td><b class="mtop">内容管理</b></td></tr>
	<tr><td onclick="seton(this,'<?php echo site_url('admin/category')?>');"><span><a href="javascript:void(0)">栏目管理</a></span></td></tr>
	<tr><td onclick="seton(this,'<?php echo site_url('admin/article')?>');"><span><a href="javascript:void(0)">题库模型</a></span></td></tr>
</table>

<script type="text/javascript">
function setTab(menuType){
	var menuWillShow = $("#left_menu_"+menuType);
	menuWillShow.find('td').each(function(){
		$(this).removeClass("on");
	});
	$("table").hide();
	menuWillShow.show();
}
function seton(element,url) {
	$(element).parent().parent().find('td').each(function(){
		$(this).removeClass("on");
	});
	$(element).addClass("on");
	parent.main.location.href=url;
}

<?php if(isset($curMenuType)):?>
setTab('<?php echo $curMenuType?>');
<?php endif;?>
</script>
<?php $this->load->view('admin/admin_foot.php');?>